string="AABCDEFGHIJ"
# 通过切片下标1到下标8的子串
str=string[1:9]
# 输出子串
print(str)